GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Passed
Push — master ( 4f400b...27c2a7 )
by Keith
80:08
created

rc-53-entry-repository.js ➔ Initialize   A

Complexity

Conditions 2

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 2
eloc 3
dl 0
loc 5
rs 10
c 0
b 0
f 0
1
"use strict";
2
app.controller('repositoryEntryController', ['$scope', '$state', 'Security', function ($scope, $state, Security, $rootScope) {
3
	$scope.directiveScopeDict = {};
4
    $scope.directiveCtrlDict = {};
5
	
6
	$scope.repositoryID = $state.params.repositoryID;
7
	
8
    function Initialize(){
9
        var entryForm = {};
10
11
        $scope.entryForm = entryForm;
12
    }
13
    Initialize();
14
	
15
	$scope.BackToParentState = function(){
16
		//$state.go('rc-51-list-license-terms');
17
		$state.go('^');
18
	}
19
20
    $scope.EventListener = function(scope, iElement, iAttrs, controller){
21
		var tagName = iElement[0].tagName.toLowerCase();
22
		var prgmID = scope.programId;
23
		var scopeID = scope.$id;
0 ignored issues
show
Unused Code introduced by
The variable scopeID seems to be never used. Consider removing it.
Loading history...
24
		var hashID = tagName + '_' + prgmID;
25
26
		if($scope.directiveScopeDict[hashID] == null || typeof($scope.directiveScopeDict[hashID]) == "undefined"){
27
			$scope.directiveScopeDict[hashID] = scope;
28
			$scope.directiveCtrlDict[hashID] = controller;
29
30
		}
31
		
32
        iElement.ready(function() {
33
        })
34
    }
35
36
    $scope.SetDefaultValue = function(scope, iElement, iAttrs, controller){
37
		var name = "entry_ds52ry"
38
		$scope.directiveCtrlDict[name].ngModel.RepositoryID = $scope.repositoryID;
39
		
40
		$scope.directiveScopeDict[name].FindData();
41
		
42
    }
43
44
    $scope.StatusChange = function(fieldName, newValue, newObj, scope, iElement, iAttrs, controller){
45
        if(fieldName == "ShortForm")
46
            newObj.ShortForm = newObj.ShortForm.toUpperCase(); 
47
    }
48
49
    $scope.ValidateBuffer = function(scope, iElement, iAttrs, controller){
50
        return true;
51
    }
52
}]);
53